﻿using JNPF.Basics.Models.CodeBuilder.Template3;
using JNPF.Utils;
using System.Collections.Generic;

namespace JNPF.Basics.Models.CodeBuilder
{
    /// <summary>
    /// 多表开发配置
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// </summary>
    public class Template3HelperModel
    {
        /// <summary>
        /// 版本
        /// </summary>
        public string Version = ConfigurationKey.SoftVersion;
        /// <summary>
        /// 版权
        /// </summary>
        public string Copyright { get; set; }
        /// <summary>
        /// 创建人员
        /// </summary>
        public string CreateUser { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public string CreateDate { get; set; }
        /// <summary>
        /// 所在区域
        /// </summary>
        public string AreasName { get; set; }
        /// <summary>
        /// 功能描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 功能类名
        /// </summary>
        public string[] ClassName { get; set; }
        /// <summary>
        /// 实体类字段
        /// </summary>
        public List<List<EntityFieldModel>> EntityFieldList { get; set; }
        /// <summary>
        /// 后端目录
        /// </summary>
        public string ServiceDirectory { get; set; }
        /// <summary>
        /// 前端目录
        /// </summary>
        public string WebDirectory { get; set; }
        /// <summary>
        /// 表单标题
        /// </summary>
        public string FormTitle { get; set; }
        /// <summary>
        /// 弹窗类型
        /// </summary>
        public string FormDialog { get; set; }
        /// <summary>
        /// 表单宽度
        /// </summary>
        public int? FormWidth { get; set; }
        /// <summary>
        /// 表单高度
        /// </summary>
        public int? FormHeight { get; set; }
        /// <summary>
        /// 表单Tabs
        /// </summary>
        public string[] FormTabs { get; set; }
        /// <summary>
        /// 列表左边树 - 是否显示
        /// </summary>
        public int? TreeIsShow { get; set; }
        /// <summary>
        /// 列表左边树 - 树形标题
        /// </summary>
        public string TreeTitle { get; set; }
        /// <summary>
        /// 列表左边树 - 数据来源
        /// </summary>
        public string TreeDataSource { get; set; }
        /// <summary>
        /// 列表左边树 - 数据字典
        /// </summary>
        public string TreeDictionary { get; set; }
        /// <summary>
        /// 列表左边树 - 数据选择
        /// </summary>
        public string TreeDbTable { get; set; }
        /// <summary>
        /// 列表左边树 - 主键字段
        /// </summary>
        public string TreeDbTableField { get; set; }
        /// <summary>
        /// 列表左边树 - 父级字段
        /// </summary>
        public string TreeDbTableFieldParentId { get; set; }
        /// <summary>
        /// 列表左边树 - 显示字段
        /// </summary>
        public string TreeDbTableFieldShow { get; set; }
        /// <summary>
        /// 列表左边树 - 关联字段
        /// </summary>
        public string TreeDbTableFieldRelation { get; set; }
        /// <summary>
        /// 工具栏按钮 - 新建
        /// </summary>
        public string IndexBtnAddName { get; set; }
        /// <summary>
        /// 工具栏按钮 - 编辑
        /// </summary>
        public string IndexBtnEditName { get; set; }
        /// <summary>
        /// 工具栏按钮 - 删除
        /// </summary>
        public string IndexBtnRemoveName { get; set; }
        /// <summary>
        /// 工具栏按钮 - 上移
        /// </summary>
        public string IndexBtnFirstName { get; set; }
        /// <summary>
        /// 工具栏按钮 - 下移
        /// </summary>
        public string IndexBtnNextName { get; set; }
        /// <summary>
        /// 列表主表 - 标题
        /// </summary>
        public string IndexListTitle { get; set; }
        /// <summary>
        /// 列表主表 - 分页
        /// </summary>
        public int? IndexGridIsPage { get; set; }
        /// <summary>
        /// 列表主表 - 字段集合
        /// </summary>
        public List<IndexGridFieldModel> IndexGridField { get; set; }
        /// <summary>
        /// 列表子表 - 子表集合
        /// </summary>
        public List<IndexGridEntryModel> IndexGridEntry { get; set; }
        /// <summary>
        /// 数据关联 - 集合
        /// </summary>
        public List<Template3.DbTableRelationModel> DbTableRelation { get; set; }
        /// <summary>
        /// 表单控件 - 集合
        /// </summary>
        public List<FormControlModel> FormControls { get; set; }
    }
}
